package com.micro.plugins.oss.storage;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * <h1>七牛云对象配置</h1>
 * @author LevelCoder
 * @version V1.0.0
 * @email LevelCoder@126.com
 * @date 2020/5/8
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class QiNiuStorage {


    /**
     * 七牛云存储
     */
    public String storageType;

    /**
     * 七牛路径前缀
     */
    private String prefix;
    /**
     * 七牛ACCESS_KEY
     */
    private String accessKey;

    /**
     * 七牛SECRET_KEY
     */
    private String secretKey;

    /**
     * 七牛存储空间群组
     */
    private List<QiniuBucket> qiniuBucketList;


    /**
     * <h2>七牛存储空间群组</h2>
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class QiniuBucket{

        /**
         * 七牛存储空间名
         */
        private String bucketName;

        /**
         * 七牛存储空间绑定的域名
         */
        private String bucketDomain;
    }

}
